package com.correction.classes;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.correction.classes.Utilisateur.Niveau;

@Entity
@Table(name = "exercice")
public class Exercice {

	public enum Langage {
		CPP, JAVA, C, VB
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	@Column(name = "Langage")
	@Enumerated(EnumType.STRING)
	private Langage Langage;
	@Column(name = "nombrePoint")
	private float nombrePoint;
	@Column(name = "niveau")
	private Niveau niveau;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Langage getLangage() {
		return Langage;
	}
	public void setLangage(Langage langage) {
		Langage = langage;
	}
	public float getNombrePoint() {
		return nombrePoint;
	}
	public void setNombrePoint(float nombrePoint) {
		this.nombrePoint = nombrePoint;
	}
	public Niveau getNiveau() {
		return niveau;
	}
	public void setNiveau(Niveau niveau) {
		this.niveau = niveau;
	}
	public String getEnonce() {
		return enonce;
	}
	public void setEnonce(String enonce) {
		this.enonce = enonce;
	}
	public int getDureeEnMinute() {
		return dureeEnMinute;
	}
	public void setDureeEnMinute(int dureeEnMinute) {
		this.dureeEnMinute = dureeEnMinute;
	}
	public Date getDatePublication() {
		return datePublication;
	}
	public void setDatePublication(Date datePublication) {
		this.datePublication = datePublication;
	}
	@Column(name = "enonce")
	private String enonce;
	@Column(name = "dureeEnMinute")
	private int dureeEnMinute;
	@Column(name = "datePublication")
	private Date datePublication;
}
